import requests

# 给定的 ID 列表
id_list = [
53885,
53928,
53929,
53930,
53931,
53932,
53933,
53934,
53935,
53936,
53937,
53938,
53939,
53940,
53941,
53942,
53943,
53944,
53945,
53946,
53947,
53948,
53949,
53950,
53951,
53952,
53953,
53954,
53955,
53956,
53957,
53958,
53959,
53960,
53961,
53962,
53963,
53964,
53965,
53966,
53967,
53968,
53969,
53970,
53971,
53972,
53973,
53974,
53975,
53976,
53977,
53978,
53979,
53980,
53981,
53982,
53983,
53984,
53985,
54020,
54021,
54022,
54023,
54024,
54025,
54026,
54027,
54028,
54029,
54030,
54031,
54032,
54033,
54034,
54035,
54036,
54037,
54038,
54039,
54040,
54041,
54042,
54043,
54044,
54045,
54046,
54047,
54048,
54049,
54050,
54051,
54052,
54053,
54054,
54055,
54056,
54057,
54058,
54059,
54060,
54061,
54062,
54063,
54064,
54065,
54066,
54067,
54068,
54069,
54070,
54071,
54072,
54073,
54074,
54075,
54076,
54077,
54078,
54079,
54080,
54081,
54082,
54083,
54084,
54085,
54128,
54129,
54130,
54131,
54132,
54133,
54134,
54135,
54136,
54137,
54138,
54139,
54140,
54141,
54142,
54143,
54144,
54145,
54146,
54147,
54148,
54149,
54150,
54151,
54152,
54153,
54154,
54155,
54156,
54157,
54158,
54159,
54160,
54161,
54162,
54163,
54164,
54165,
54166,
54167,
54168,
54169,
54170,
54171,
54172,
54173,
54174,
54175,
54176,
54177,
54178,
54179,
54180,
54181,
54182,
54183,
54184,
54185,
54221,
54222,
54223,
54224,
54225,
54226,
54227,
54228,
54229,
54230,
54231,
54232,
54233,
54234,
54235,
54236,
54237,
54238,
54239,
54240,
54241,
54242,
54243,
54244,
54245,
54246,
54247,
54248,
54249,
54250,
54251,
54252,
54253,
54254,
54255,
54256,
54257,
54258,
54259,
54260,
54261,
54262,
54263,
54264,
54265,
54266,
54267,
54268,
54269,
54270,
54271,
54272,
54273,
54274,
54275,
54276,
54277,
54278,
54279,
54280,
54281,
54282,
54283,
54284,
54285,
54320,
54321,
54322,
54323,
54324,
54325,
54326,
54327,
54328,
54329,
54330,
54331,
54332,
54333,
54334,
54335,
54336,
54337,
54338,
54339,
54340,
54341,
54342,
54343,
54344,
54345,
54346,
54347,
54348,
54349,
54350,
54351,
54352,
54353,
54354,
54355,
54356,
54357,
54358,
54359,
54360,
54361,
54362,
54363,
54364,
54365,
54366,
54367,
54368,
54369,
54370,
54371,
54372,
54373,
54374,
54375,
54376,
54377,
55238,
55239,
55240,
55241,
55242,
55382,
55383,
55384,
55385,
55420,
55421,
55422,
55423,
55424,
55425,
55426,
55427,
55428,
55429,
55430,
55431,
55432,
55433,
55434,
55435,
55436,
55437,
55438,
55439,
55440,
55441,
55442,
55443,
55444,
55445,
55446,
55447,
55448,
55449,
55450,
55451,
55452,
55453,
55454,
55455,
55456,
55457,
55458,
55459,
55460,
55461,
55462,
55463,
55464,
55465,
55466,
55467,
55468,
55469,
55470,
55471,
55472,
55473,
55474,
55475,
55476,
55477,
55478,
55479,
55480,
55481,
55482,
55483,
55484,
55485,
55522,
55523,
55524,
55525,
55526,
55527,
55528,
55529,
55530,
55531,
55532,
55533,
55534,
55535,
55536,
55537,
55538,
55539,
55540,
55541,
55542,
55543,
55544,
55545,
55546,
55547,
55548,
55549,
55550,
55551,
55552,
55553,
55554,
55555,
55556,
55557,
55558,
55559,
55560,
55561,
55562,
55563,
55564,
55565,
55566,
55567,
55568,
55569,
55570,
55571,
55572,
55573,
55574,
55575,
55576,
55577,
55578,
55579,
55580,
55581,
55582,
55583,
55584,
55585,
55622,
55623,
55624,
55625,
55626,
55627,
55628,
55629,
55630,
55631,
55632,
55633,
55634,
55635,
55636,
55637,
55638,
55639,
55640,
55641,
55642,
55643,
55644,
55645,
55646,
55647,
55648,
55649,
55650,
55651,
55652,
55653,
55654,
55655,
55656,
55657,
55658,
55659,
55660,
55661,
55662,
55663,
55664,
55665,
55666,
55667,
55668,
55669,
55670,
55671,
55672,
55673,
55674,
55675,
55676
]

# API 基础 URL
base_url = "http://106.55.8.90:7001/api/ccSmartStrategy/genTopic/invoke?ids="

# 请求头
headers = {
    'User-Agent': 'Apifox/1.0.0 (https://apifox.com)'
}

# 每 10 个 ID 一组进行调用
batch_size = 100
for i in range(0, len(id_list), batch_size):
    batch = id_list[i:i + batch_size]  # 获取当前批次的 ID
    ids_str = ",".join(map(str, batch))  # 转换为逗号分隔的字符串
    url = base_url + ids_str  # 构造完整 URL
    print(f"请求 URL: {url}")

    # 发送 GET 请求
    response = requests.get(url, headers=headers)

    # 打印响应结果
    print(f"请求 URL: {url}")
    print(f"响应状态码: {response.status_code}")
    print(f"响应内容: {response.text}")
    print("-" * 50)  # 分隔线